<?php
include "../lib/DAL/DmLoaiMonHoc.php";

class LoaiMonhocBLL{
    function __construct(){
    }
    
    function __destruct(){
    }

    public function setLoaiMonhocBLL($row)
    {
        $loai_mh= new DmLoaiMonHoc();
        $loai_mh->setLoaiMonhoc($row['madm_lmh'],$row['ten_lmh']);
        return $loai_mh;   
    }
    
    public function getListLoaiMonhoc(){
        $ex=mysql_query("SELECT * FROM dm_loaimonhoc");
        if($ex){
            while($row=mysql_fetch_array($ex)){
                $ds[]=$this->setLoaiMonhocBLL($row);
            }
        }
        return $ds;
    }
}
?>